module.exports = {
    configureWebpack: {
        resolve: {
            alias: {
                assets: "@/assets",
                common: "@/common",
                components: "@/components",
                network: "@/network",
                views: "@/views"
            }
        }
    },
    // 代理配置
    devServer: {
        port: 8080,
        proxy: {
            '^/api': {
                target: 'https://localhost:8081',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
};